package com.atzon.model;

import com.atzon.annotation.FieldAnnotation;
import com.atzon.annotation.TableAnnotation;

@TableAnnotation("favorite")
public class Favorite {
    /**
     * id
     */
    @FieldAnnotation("id")
    private Integer id;

    /**
     * 收藏用户id
     */
    @FieldAnnotation("u_id")
    private Integer uId;

    /**
     * 文章id
     */
    @FieldAnnotation("a_id")
    private Integer aId;

    public Favorite() {
    }

    public Favorite(Integer id, Integer uId, Integer aId) {
        this.id = id;
        this.uId = uId;
        this.aId = aId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public Integer getaId() {
        return aId;
    }

    public void setaId(Integer aId) {
        this.aId = aId;
    }

    @Override
    public String toString() {
        return "Favorite{" +
                "id=" + id +
                ", uId=" + uId +
                ", aId=" + aId +
                '}';
    }
}
